#ifndef BTFORM_H
#define BTFORM_H

#include <QWidget>

namespace Ui {
class BTForm;
}

class BTForm : public QWidget
{
    Q_OBJECT

public:
    explicit BTForm(QWidget *parent = nullptr);
    ~BTForm();

    // BTForm 初始化
    void setIconAndText(const QString& btIcon, const QString& btText, int pageId);
    int getPageId() const;
    void clearBackground();

    // lineBox 动画效果
    void showAnimation(bool isShow);

signals:
    void btClick(int pageId);

protected:
    void mousePressEvent(QMouseEvent *event);

private:
    Ui::BTForm *ui;

    //用于区分切换 stackWidget 的不同页面
    int pageId = 0;
};

#endif // BTFORM_H
